//数据模型

const mongoose = require('mongoose')

let filmSchema = new mongoose.Schema({
   name  : { type:String ,required:true},
   year : { type:Number ,required:true},
   area  : { type:String ,required:true},
   img   : { type:String ,required:false},
   filmType   : { type:String ,required:true}, 
})

let filmModel = mongoose.model('films',filmSchema)

module.exports = filmModel